const express = require('express');

const app = express();

app.get('/home',(request,response)=>{
    response.sendFile(__dirname + '/index.html');
});

app.get('/data',(request,response)=>{
    response.send('用户数据');
})

app.listen(8000,()=>{
    console.log('服务器已启动');
});